STEP 2: Nothing happened because we still need to call our function! We will do this inside a main function.

A main function is the starting point of a program that organizes the other functions in your code.

  • Click on the LOGIC section. Go to and drag Main Function to the bottom of the code editor and outside the set_stage() function.
  • Notice that the main function has automatically been called at the very bottom of the program.

To navigate the page using the TAB key, first press ESC to exit the code editor.

def set_stage(): stage.set_background("soccerfield") stage.disable_floor()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)